<?php
require_once 'vendor/autoload.php';

//获取折旧方法
$list = \Buickwang\Calculator\Generator::lists();
//dd($list);

//获取折旧残值率
$rate = \Buickwang\Calculator\Generator::rates();
//dd($rate);

//计算直线折旧法月折旧值
$model = new \Buickwang\Calculator\Models\CalculatorModel(1000,0.03,10,'StraightLineDepreciation');
$calculator = \Buickwang\Calculator\Factory::build($model);
dd($calculator->run($model));
